﻿using System;
using fastCSharp;
using fastCSharp.code.cSharp;

namespace diantou.dataModel.path
{
    /// <summary>
    /// 考试用户
    /// </summary>
    public struct examUser
    {
        /// <summary>
        /// 考试用户标识
        /// </summary>
        public int Id;
        /// <summary>
        /// 考试报告
        /// </summary>
        public webView.hashUrl Report
        {
            get { return new webView.hashUrl { Path = "/enterprise/report.html", Query = "userId=" + Id.toString() }; }
        }
        /// <summary>
        /// 发送通知
        /// </summary>
        public webView.hashUrl SendMessage
        {
            get { return new webView.hashUrl { Path = "/enterprise/sendMessage.html", Query = "userId=" + Id.toString() }; }
        }
        /// <summary>
        /// 简历
        /// </summary>
        public string Resume
        {
            get { return "/enterprise/exam/Resume?userId=" + Id.toString(); }
        }
        /// <summary>
        /// 考试报告
        /// </summary>
        public webView.hashUrl ExamReport
        {
            get { return new webView.hashUrl { Path = "http://" + diantou.dataModel.path.domain.Default.ExamDomain + "/exam/report.html", Query = "userId=" + Id.toString() }; }
        }
    }
}
